package cn.northsea.model.user;


import cn.northsea.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "UserInfo")
@TableName("users")
public class UserInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "用户密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "用户姓名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "职称")
    @TableField("job")
    private String job;

    @ApiModelProperty(value = "角色")
    @TableField("role")
    private Integer role;

    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty(value = "入职时间")
    @TableField("enter_time")
    private Date enterTime;



}